/*
 * gen_utils.hpp
 *
 *  Created on: Apr 5, 2009
 *      Author: Lev
 */

#ifndef GEN_UTILS_HPP_
#define GEN_UTILS_HPP_

#include <iterator>

template<typename T>
inline void printElements( const T &collection, const char *title="", const char *delim=" " ) {
	typedef typename T::value_type E;
	std::cout << title;
	std::copy( collection.begin(), collection.end(),
				std::ostream_iterator<E>( std::cout, delim ) );
	std::cout << std::endl;
}

#endif /* GEN_UTILS_HPP_ */
